
GCC = gcc

CFLAGS += -Wall -lstdc++ -fsanitize=address

LIBS +=

INCS += -I../
INCS += -I../../util/

SRCS += ../../util/util_bmp.cpp
# 包含上一层文件夹的所有.cpp文件
SRCS += ${wildcard ../*.cpp}

all: image value

image:
	@$(GCC) -o out.$@ $@.cpp $(INCS) $(SRCS) $(CFLAGS) $(LIBS)

value:
	@$(GCC) -o out.$@ $@.cpp $(INCS) $(SRCS) $(CFLAGS) $(LIBS)

clean:
	@rm -rf out*
